package se.topshelf.golftracker.core.service;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import se.topshelf.golftracker.core.domain.Player;
import se.topshelf.golftracker.core.repository.BaseRepository;
import se.topshelf.golftracker.core.repository.PlayerRepository;

import javax.annotation.Resource;

@Service
@Transactional
public class PlayerServiceImpl extends BaseServiceImpl<Player> implements PlayerService {
    @Resource
    private PlayerRepository playerRepository;


    public PlayerServiceImpl() {
    }

    public void setPlayerRepository(PlayerRepository playerRepository) {
        this.playerRepository = playerRepository;
    }

    @Override
    BaseRepository<Player> getBaseRepository() {
        return playerRepository;
    }
}
